package 多线程;


import java.util.Arrays;
import java.util.Scanner;

public class Reverse {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int[] a = new int[5];
        System.out.println("输入");

        for(int i = 4;i >= 0;i--) {
            a[i] = sc.nextInt();
        }

        for(int i = 0;i < 5;i++) {
            System.out.print(a[i]);
        }

        Arrays.sort(a);

        System.out.println("由小到大");
        for(int i = 0;i < 5;i++) {
            System.out.print(a[i]);
        }

    }
}
